package light.head.controller.sys;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import light.head.constant.Url;
import light.head.enm.HANDLE_TYPE;
import light.head.framework.base.SupporterController;
import light.head.framework.entity.Handle;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value = Url.C_HANDLE)
public class HandleController extends SupporterController {

	@RequestMapping(value = Url.INIT)
	public ModelAndView init(HttpServletRequest request, HttpServletResponse response) throws Exception {
		return new ModelAndView(Url.HANDLE_INIT);
	}

	@RequestMapping(value = Url.EDIT)
	public ModelAndView edit(Integer code, Integer parentCode, HANDLE_TYPE type, HttpServletRequest request, HttpServletResponse response) throws Exception {
		return new ModelAndView(Url.HANDLE_EDIT);
	}

	@RequestMapping(value = Url.SAVE)
	public void save(Handle h, HttpServletRequest request, HttpServletResponse response) throws Exception {
	}

	@RequestMapping(value = Url.DELETE)
	public void delete(Integer code, HttpServletRequest request, HttpServletResponse response) throws Exception {
	}
}
